﻿using System;
using System.Linq;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Unity;
using Mipic.Modules.Mood.Views;

namespace Mipic.Modules.Mood
{
    /// <summary>
    /// Mood module.
    /// </summary>
    public class MoodModule : IModule
    {
        
        #region //--------- Private Fields --------------//

        private readonly IUnityContainer _container;
        
        #endregion
        
        public MoodModule(IUnityContainer container)
        {
            _container = container;
        }
        
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            _container.RegisterType<object, MoodView>("MoodView");
        }
    }
}